-- GENERATED SPELL FOR [Sifreldar Runekeeper] --


function spell0_29331(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20792,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29331', 7000, 1)
end

function spell1_29331(pUnit, Event) --@Revitalizing Rune,n/a--
pUnit:FullCastSpellOnTarget(52714,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29331', 5000, 1)
end

function Sorts_29331(pUnit, Event)
local choix_sorts_29331 = math.random(0, 1)
if choix_sorts_29331 == 0 then
pUnit:RegisterEvent('spell0_29331', 1, 1)
end
if choix_sorts_29331 == 1 then
pUnit:RegisterEvent('spell1_29331', 1, 1)
end
end

function mob29331_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29331', math.random(1500, 3000), 1)
end

function mob29331_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29331_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29331_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29331, 1, 'mob29331_Action')
RegisterUnitEvent(29331, 2, 'mob29331_Leave')
RegisterUnitEvent(29331, 3, 'mob29331_Kill')
RegisterUnitEvent(29331, 4, 'mob29331_Die')
